﻿using EnvDTE;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.VisualStudio.Shell;

namespace FanaticToy.Helpers
{
    internal class DTEHelper
    {
        public static DTE GetDTE(Package pack)
        {
            var dte = pack.GetService<DTE>();
            ThisSingleton.Init(dte);
            return dte;
        }
    }
}
